package com.bdqn.zhang.dao;

import com.bdqn.zhang.entity.Category;
import com.bdqn.zhang.entity.Entry;

import java.util.List;

public interface EntryDao {


    void addEntry(Entry entry);

    void delEntry(Integer id);

    void updateEntry(Entry entry);

    Entry findEntry(Entry entry);

    List<Entry> findAllEntries(Long cId, Integer page, Integer limit);

    List<Entry> findAllEntries2(Integer page, Integer limit);

    Long getEntryCount(Long cId);

    List<Category> getCategory();

}
